//
//  HQCustomDialogs.h
//  PersonalOC
//
//  Created by 韩琴 on 2018/9/3.
//  Copyright © 2018年 韩琴. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PopoverViewController.h"

//自定义转场
static NSString *HQCustomDialogsDidPresented = @"HQCustomDialogsDidPresented";
static NSString *HQCustomDialogsDidDismiss = @"HQCustomDialogsDidDismiss";

//转场方向
typedef enum : NSUInteger {
    HQPresentDerictionLeft,
    HQPresentDerictionRight,
    HQPresentDerictionTop,
    HQPresentDerictionBottom,
} HQPresentDeriction;

@interface HQCustomDialogs : NSObject<UIViewControllerTransitioningDelegate,UIViewControllerAnimatedTransitioning>


//该方法用于返回一个负责转场动画对象的尺寸
//保存菜单的尺寸
@property (assign,nonatomic) CGRect presentFrame;
//点击背景是否收回
@property (assign,nonatomic) BOOL isCoverEnlable;
//弹出方向
@property (assign,nonatomic) HQPresentDeriction prsentDeriction;
//背景颜色
@property (strong,nonatomic) UIColor* backGrougdColor;
//- (UIPresentationController*)presentationController:(UIViewController *)presented presenting:(UIViewController *)presenting source:(UIViewController *)source;
@end
